package com.yipao.db.dao.goods;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.goods.GoodsAttribute;
import com.yipao.db.domain.goods.GoodsAttributeExample;

public interface GoodsAttributeMapper {

    long countByExample(GoodsAttributeExample example);


    int deleteByExample(GoodsAttributeExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(GoodsAttribute record);


    int insertSelective(GoodsAttribute record);


    GoodsAttribute selectOneByExample(GoodsAttributeExample example);


    GoodsAttribute selectOneByExampleSelective(@Param("example") GoodsAttributeExample example, @Param("selective") GoodsAttribute.Column ... selective);


    List<GoodsAttribute> selectByExampleSelective(@Param("example") GoodsAttributeExample example, @Param("selective") GoodsAttribute.Column ... selective);


    List<GoodsAttribute> selectByExample(GoodsAttributeExample example);


    GoodsAttribute selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") GoodsAttribute.Column ... selective);


    GoodsAttribute selectByPrimaryKey(Integer id);


    GoodsAttribute selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") GoodsAttribute record, @Param("example") GoodsAttributeExample example);


    int updateByExample(@Param("record") GoodsAttribute record, @Param("example") GoodsAttributeExample example);


    int updateByPrimaryKeySelective(GoodsAttribute record);


    int updateByPrimaryKey(GoodsAttribute record);


    int logicalDeleteByExample(@Param("example") GoodsAttributeExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
